#include<iostream>
using namespace std;

int main(){
	int a = 0;
	cin >> a;
	int ret = a / 10 % 10;
	cout << ret;
	return 0;
}
